<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<%@ include file="../inc/topo.jsp" %>
	<div id="breadcrumb">
		<s:text name="label.breadcrumb" />
		<a href="listarPagina.action">
		<s:text name="pagina.nome" />
		</a><s:text name="breadcrumb.separador" /><a href="abrirPagina.action?pagina.nuPagina=${pagina.nuPagina}">
		<s:text name="edicao" /><s:text name="pagina.nome" />
		</a>
	</div>
	<br/><h1><s:text name="edicao" /><s:text name="pagina.nome" /></h1>
	<s:url id="voltar" action="listarPagina">
		<s:param name="sitio.nuSitio" value="sitio.nuSitio" />
	</s:url>
	<br/><a href="listarPagina.action?sitio.nuSitio=${sitio.nuSitio}"><b><s:text name="label.voltar" /></b></a>
	<s:if test="pagina">
		<s:url id="lnkConteudo" action="listarConteudo">
			<s:param name="sitio.nuSitio" value="sitio.nuSitio"></s:param>
			<s:param name="pagina.nuPagina" value="pagina.nuPagina"></s:param>
		</s:url>
	| <s:a href="%{lnkConteudo}"><b><s:text name="conteudo.nome" /></b></s:a>
	</s:if>
	<br />
	<%@ include file="../inc/mensagens.jsp" %>
	<s:form action="atualizarPagina" validate="true">
		<div>
			<a href="../?nu_pagina=${pagina.nuPagina}" onclick="window.open(this.href);return false;">[Lupa] Visualizar</a>
		</div>
		<jsp:include page="pagina_form.jsp" />
		<div class="TbLEdit_btns">
			<s:submit name="inserir" key="button.label.atualizar" accesskey="s"/> <s:reset name="limpar" key="button.label.limpar"/>
			<script type="text/javascript"><!--
				document.write('<input type="button" onclick="document.location.href=\'confirmarApagarPagina.action?pagina.nuPagina=${pagina.nuPagina}\'" value="Apagar"/>');
			//-->
			</script>
			<noscript><p>
				<a href="confirmarApagarPagina.action?pagina.nuPagina=${pagina.nuPagina}">Apagar</a>
			</p></noscript>
		</div>
	</s:form>
	<jsp:include page="../inc/final.jsp" />
